package com.jycrm.service.serve.impl;

import com.jycrm.domain.serve.CrmServiceProductTa;
import com.jycrm.service.serve.IAutoServerThread;
import com.jycrm.service.serve.IAutoServiceService;

public class AutoServiceServiceImpl implements IAutoServiceService {
  
	protected IAutoServerThread autoServerThread;

	public IAutoServerThread getAutoServerThread() {
		return autoServerThread;
	}

	public void setAutoServerThread(IAutoServerThread autoServerThread) {
		this.autoServerThread = autoServerThread;
	}
	
	public void doThreadService(CrmServiceProductTa spt,String date,String userId){
		autoServerThread.setSpt(spt);
		autoServerThread.setTranStaDate(date);
		autoServerThread.setUserId(userId);
		Thread thread = new Thread(autoServerThread);
		thread.start();
	}
	
}
